package com.shop.cereshop.app.dl.logic.domain;

import java.io.Serializable;
import java.util.List;

public class CareShopColumn implements Serializable {
    /**
     * 栏目id: 1推荐栏目, 2普通栏目
     */
    private Long columnid;
    /**
     * 栏目名称
     */
    private String title;
    /**
     * 1对多, 1个栏目对应多个资讯(文章/news)
     */
    private List<CareShopNewsColumn> newsColumn;

    public List<CareShopNewsColumn> getNewsColumn() {
        return newsColumn;
    }

    public void setNewsColumn(List<CareShopNewsColumn> newsColumn) {
        this.newsColumn = newsColumn;
    }

    private static final long serialVersionUID = 1L;

    public Long getColumnid() {
        return columnid;
    }

    public void setColumnid(Long columnid) {
        this.columnid = columnid;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title == null ? null : title.trim();
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", columnid=").append(columnid);
        sb.append(", title=").append(title);
        sb.append("]");
        return sb.toString();
    }
}